package com.byted.camp.todolist.operation.db.converter;

import android.arch.persistence.room.TypeConverter;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

public class DateTypeConverter {

    // private static SimpleDateFormat sdf= new SimpleDateFormat("yyyy-MM-dd");

    @TypeConverter
    public Date stringToSomeObjectList(String data){
        return new Date(data);
    }

    @TypeConverter
    public String someObjectListToString(Date someObjects) {
        return someObjects.toString();
    }
}
